//----导出组件
import type { App, } from "vue";


//添加组件.
import { addViteMenus, i18n , addDynamicRoute } from "jmash-core";
// 本地语言包
import { loadLang } from "./lang";
import { smsRoutes } from "@/router";
const modules = import.meta.glob("./views/**/**.vue");

//组件
//import JmashDictSelect from "./components/JmashDictSelect/index.vue";


// 全局注册jmash-sms插件.
const sms = {
    install(app: App) {
        addViteMenus(modules, 7);
        loadLang(i18n);
        //app.component("jmash-dict-select", JmashDictSelect);
        addDynamicRoute(smsRoutes);
    }
}
export default sms;
